from django.conf.urls import patterns, include, url
from django.conf import settings

urlpatterns = patterns('',
    url(r'^$', 'events.views.index', name='event_index'),
    url(r'^create$', 'events.views.create', name='event_create'),
    url(r'^(?P<id>\d+)/$', 'events.views.view', name='event_view'),
    url(r'^delete/(?P<id>\d+)$', 'events.views.delete', name='event_delete'),
    url(r'^join/(?P<id>\d+)$', 'events.views.join' , name='event_join'),
    url(r'^leave/(?P<id>\d+)$', 'events.views.leave' , name='event_leave')
)